package leecode.数据结构基础.day1;

/**
 * @author cloudJiang
 * @date 2021/10/25 20:05
 */
public class Num136 {
    public static void main(String[] args) {
        System.out.println(singleNumber(new int[]{1, 1, 2, 3, 3}));
    }

    public static int singleNumber(int[] nums) {
        int num = 0;

        for (int i : nums) {
            num = num ^ i;
        }

        return num;
    }
}
